﻿using Baik.Interface.Execution;
using Baik.Interface.Framework;
using Baik.Interface.Token;

namespace Baik.Expression
{
    public class UndefinedLiteral : Expression,  Baik.Interface.Expression.IUndefined
    {
        public UndefinedLiteral(IInjector inject) : base(inject)
        {
        }

        public string AsString()
        {
            return "undefined";
        }

        public IObject Evaluate()
        {
            return Inject.Instantiate<Baik.Interface.Execution.IUndefined>();
        }

        public ILocation Location { get; set; }
    }
}